#include<stdio.h>

int main()
{   
	int n ;
	int count = 0;
	scanf_s("%d", &n);
	do {
		count++;
		n /= 10;
	} while (n != 0);
	printf("%d", count);
	return 0;
}